﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.IO;
using System.Xml;
using WFinger.Model;
using System.Text;

namespace WFinger.Web.manage.label
{
	public partial class createLabel_Form : WFinger.Web.UI.ManagePage
	{
		public string APIID = "0";
		protected void Page_Load(object sender, EventArgs e)
		{
			APIID = SiteID;
			if (!IsPostBack)
			{

				showForm(1);
			}
		}

		/// <summary>
		/// 填充表单类型
		/// </summary>
		/// 2010年6月13日  Code By Yinzhongxiang
		protected void showForm(int PageIndex)
		{
			int nRCount, nPCount;
			DataTable tb = WFinger.CMS.Pagination.GetPage("manage_label_style_add.aspx", PageIndex, 20, out nRCount, out nPCount);

			//表单列表中表单类型绑定
			this.FormTableName.DataSource = tb;
			this.FormTableName.DataTextField = "formname";
			this.FormTableName.DataValueField = "formtablename";
			this.FormTableName.DataBind();
			FormTableName.Items.Insert(0, new ListItem("请选择表单", ""));
			//表单列表中提交表单绑定
			this.FormID.DataSource = tb;
			this.FormID.DataTextField = "formname";
			this.FormID.DataValueField = "id";
			this.FormID.DataBind();
			this.FormID.Items.Insert(0, new ListItem("请选择表单", ""));
		}
	}
}
